package com.xiaozhu.mapper;

import com.xiaozhu.anno.AutoFill;
import com.xiaozhu.enum_xz.MyEnum;
import com.xiaozhu.pojo.Entity.User;

import java.util.List;

/**
 * @author 朱慧军
 * @version 1.0
 */
public interface LoginMapper {


    User login(User user);

    @AutoFill(value = "新增", operation = MyEnum.INSERT)
    void insert(User user);

    List<User> userList();

    User selectUser(User user);

    void delete(List<Long> ids);

    User selectInfo(Long userId);

    @AutoFill(value = "设置成管理员" , operation = MyEnum.UPDATE)
    void update(User user);
}
